import request from '@/utils/request'

//g01 获取管理员列表
export const manageGetServe = () => {
  return request.get('/manage')
}
//77 管理员重置维修人密码为默认密码
export const personResetPwServe = (obj) => {
  return request.put('/person/resetpw', { ...obj })
}

//
//0305获取维修人列表
export const personGetServe = (obj) => {
  return request.get('/person', { params: { ...obj } })
}
//02新增维修人
export const personAddServe = (obj) => {
  return request.post('/person', { ...obj })
}
//04修改状态
export const personEditStatusServe = (obj) => {
  return request.put('/person', { ...obj })
}
//22删除维修人
export const personDelServe = (stu_id) => {
  return request.delete('/person', { params: { stu_id } })
}
//0608工号查维修人值班记录
export const personGetDutyServe = (obj) => {
  return request.get('/person/record', { params: { ...obj } })
}
//18查时长
export const personGetTimeServe = (obj) => {
  return request.get('/person/time', { params: { ...obj } })
}
//20维修人查自己的时长
export const personGetTimeOnlyServe = (stu_id) => {
  return request.get('/stu/grade', { params: { stu_id } })
}
//00获取格式
export const personGetFormatServe = () => {
  return request.get('/format')
}
